#define _CRT_SECURE_NO_WARNINGS 1

#include "ListNode.h"

int main()
{
	ListNode* head = ListCreate();
	ListPushBack(head, 10);
	ListPushBack(head, 9);
	ListPushBack(head, 8);
	ListPushBack(head, 7);
	ListPushBack(head, 6);
	ListPrint(head);

	ListPopBack(head);
	ListPrint(head);

	ListPushFront(head,888);
	ListPushBack(head, 999);
	ListPrint(head);

	ListPopFront(head);
	ListPrint(head);

	ListNode* pos= ListFind(head, 7);
	ListPrint(pos);

	ListInsert(pos,101);
	ListPrint(head);

	ListErase(pos);
	ListPrint(head);

	ListDestory(&head);
	ListPrint(head);



}